﻿package net.wangit.demo.ajax;

import net.wangit.Unit;
import net.wangit.context.ActionContext;
import net.wangit.support.UnitInterceptor;
import net.wangit.util.DateUtil;

public class TimeUI implements UnitInterceptor {

	public String intercept(ActionContext ac, Unit unit) throws Exception {
		unit.setTitle(unit.getTitle() + " " + DateUtil.getCurrentDatetime());
		return unit.write(ac);
	}

}
